package com.flower.hooc.service;

import com.flower.hooc.bean.pojo.entity.User;
import com.flower.hooc.bean.pojo.qo.UserLoginQO;

/**
 * @author:kevinfoo
 * @date:2020/08/28
 * @file:com.flower.service
 */

public interface UserService {

    /**
     * 获取用户详情
     *
     * @param userId 用户id
     * @return 如果存在返回user, 不存在返回null
     */
    User getById(Long userId);

    User register(User user);

    /**
     * 获取用户信息
     *
     * @param username 用户名
     * @return
     */
    User getByUserName(String username);

    User login(UserLoginQO qo);
}

